package com.ming.core.ioc;

import com.ming.core.ioc.context.IvyApplicationContext;
import com.ming.core.ioc.service.UserInterface;

public class Test {

    public static void main(String[] args) {

        // 扫描--->创建单例Bean BeanDefinition BeanPostPRocess
        IvyApplicationContext applicationContext = new IvyApplicationContext(AppConfig.class);

        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();
    }
}
